home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #14 / Monster Media No. 14 (April 1996) (Monster Media, Inc.).ISO / prog_d / hlp_wzrd.zip / ABOUT.PA$ < prev    next >
Text File  |  1996-01-19  |  1KB  |  58 lines

  1. unit About;
  2.  
  3. interface
  4.  
  5. {$R *.DFM}
  6.  
  7. uses WinTypes, WinProcs, Classes, Controls, Forms, Graphics, StdCtrls,
  8.      DsgnIntf, Buttons, ExtCtrls;
  9.  
  10. type
  11.   TAbout = class(TPersistent)
  12.   end;
  13.  
  14.   TAboutProperty = class(TClassProperty)
  15.   public
  16.     procedure Edit; override;
  17.     function GetAttributes: TPropertyAttributes; override;
  18.   end;
  19.  
  20.   TAboutBox = class(TForm)
  21.     Panel1: TPanel;
  22.     OK: TBitBtn;
  23.     Label1: TLabel;
  24.     Label2: TLabel;
  25.     Label3: TLabel;
  26.     Label5: TLabel;
  27.     Label6: TLabel;
  28.     Label7: TLabel;
  29.     Image1: TImage;
  30.     procedure OKClick(Sender: TObject);
  31.   private
  32.     { Private declarations }
  33.   public
  34.     { Public declarations }
  35.   end;
  36.  
  37. implementation
  38.  
  39. procedure TAboutProperty.Edit;
  40. var AboutBox: TAboutBox;
  41. begin
  42.   AboutBox := TAboutBox.Create(Application);
  43.   AboutBox.ShowModal;
  44.   AboutBox.Free;
  45. end;
  46.  
  47. function TAboutProperty.GetAttributes: TPropertyAttributes;
  48. begin
  49.   Result := [paDialog];
  50. end;
  51.  
  52. procedure TAboutBox.OKClick(Sender: TObject);
  53. begin
  54.   Close;
  55. end;
  56.  
  57. end.
  58.